package com.lms.logistics_management_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor  //自动创建无参构造
@AllArgsConstructor //自动创建有参构造
//mybatis-plus会直接去数据库中查找，名字必须一致或者用tablename
@TableName(value = "team_reservation")
@ToString
public class TeamReservation {
    @TableId(type = IdType.AUTO)
    @TableField(value = "team_reservation_id")
    private Integer teamReservationId;

    @TableField(value = "team_number")
    private Integer teamNumber;

    @TableField(value = "reservation_buy_price")
    private double reservationBuyPrice;

//    @TableField(value = "reservation_buy_time")
//    private LocalDateTime reservationBuyTime;

    @TableField(value = "user_openid")
    private String userOpenid;

    @TableField(value = "combo_id")
    private Integer comboId;

    @TableField(value = "available_number")
    private Integer availableNumber;

    @TableField(value = "team_leader_name")
    private String teamLeaderName;

    @TableField(value = "discount")
    private double discount;

}

